{% extends "books/base.html" %}

{% block title %}
<title>book detail</title>
{% endblock %}

{% block body %}
<div id="page">
	<h2>Book Detail</h2>
	<a href="{% url 'book:books_all' %}">书册清单</a>
	<a href="{% url 'book:author_list' %}">作家清单</a>

	<ul>
		<li>{{ book.title }}</li>
		<li>
			<ul>
				{% for author in book.authors.all %}
				<li><a href="{% url 'book:author_detail' author.id %}">{{ author }}</a></li>
				{% endfor %}
			</ul>
		</li>
		<li>{{ book.publication_date }}</li>
	</ul>
</div>
{% endblock %}
